// import Vue from 'vue';
import vuex from 'vuex';
import state from './state.js';
import * as getters from './getters.js';
import mutations from './mutations.js';
import actions from './actions.js';
// 
import personnel from './modules/personnel/index.js';
import department1 from './modules/department/index.js';
import role from './modules/role/index.js'
import authcreate from './modules/auth/create.js';
import group from './modules/group/index.js';
// 
import createLogger from 'vuex/dist/logger'; //修改日志

Vue.use(vuex);

const debug = process.env.NODE_ENV !== 'production'; //开发环境中为true，否则为false

export default new vuex.Store({
    state,
    getters,
    mutations,
    actions,
    modules: {
        personnel,
        department1,
        role,
        authcreate,
        group
    },
    strict: debug,
    plugins: debug ? [createLogger()] : [] //开发环境下显示vuex的修改状态
});

// waiting_list 待添加列表